<?php 
class USER_DEFINED{
	 //nick type
	 const NICK_TYPE_YAHOO  = '1';
	 const NICK_TYPE_SKYPE 	= '2';
	 const NICK_TYPE_LIVE 	= '3';
	 
	 //account type
	 const ACCOUNT_TYPE_FREE = '1';
	 const ACCOUNT_TYPE_PAID = '2';
	 
	 const ADV_PAGE_HOME_TOP					= '1';
	 const ADV_PAGE_HOME_MIDDLE					= '14';
	 const ADV_PAGE_HOME_BOTTOM					= '15';
	 
	 const ADV_PAGE_PERIOD_DETAIL			= '2';
	 const ADV_PAGE_LOAN_DETAIL				= '3';
	 const ADV_PAGE_CARD_DETAIL				= '4';
	 const ADV_PAGE_FINANCE_DETAIL			= '5';
	 const ADV_PAGE_INSURANCE_DETAIL		= '6';
	 const ADV_PAGE_NEWS					= '7';
	 const ADV_PAGE_NEWS_DETAIL				= '8';
	 const ADV_PAGE_FAQ						= '9';
	 const ADV_PAGE_FAQ_DETAIL				= '10';
	 const ADV_PAGE_FAQ_FORM				= '11';
	 const ADV_PAGE_CONSULTING_INDEPENDENT	= '12';
	 const ADV_PAGE_CONSULTING_ONLINE		= '13';
	 const ADV_PAGE_RULE					= '14';
	 
	 const FAQ_CATE_FINANCE					= '2';
	 const FAQ_CATE_LOAN					= '1';
	 const FAQ_CATE_CARD					= '3';
	 
	 const NEWS_HOPITAL			= '1';
	 const NEWS_SHARING			= '2';
	 const NEWS_EXPERIENCE		= '3';
	 const NEWS_DOCTOR			= '4';
	 const NEWS_PROCESS			= '5';
	
}

class ArrayData {
	/**
	 * GET ARRAY NEWS CATEGORY
	 * @return array
	 */
	public static function getNewsCates(){
		$arr = array(
				USER_DEFINED::NEWS_HOPITAL		=> 'Bệnh viện',
				USER_DEFINED::NEWS_SHARING		=> 'Chia sẻ',
				USER_DEFINED::NEWS_EXPERIENCE	=> 'Kinh nghiệm',
				USER_DEFINED::NEWS_DOCTOR		=> 'Bác sĩ',
				USER_DEFINED::NEWS_PROCESS		=> 'Quy trình'
		);
		return $arr;
	}
	/**
	 * GET ARRAY FAQ CATEGORY
	 * @return array
	 */
	public static function getFaqCates(){
		$arr = array(
				'0' 		=> USER_DEFINED::FAQ_CATE_LOAN, 
				'1'			=> USER_DEFINED::FAQ_CATE_FINANCE, 
				'2'			=> USER_DEFINED::FAQ_CATE_CARD
		);
		return $arr;
	}
	
	/**
	 * GET ARRAY ACCOUNT TYPE
	 * @return array
	 */
	public static function getAccountType(){
		$arr = array(
				USER_DEFINED::ACCOUNT_TYPE_FREE 		=> 'account_type_free',
				USER_DEFINED::ACCOUNT_TYPE_PAID 		=> 'account_type_paid'
		);
		return $arr;
	}
	/**
	 * GET ARRAY NICK TYPE
	 * @return array
	 */
	public static function getNickType(){
		$arr = array(
				USER_DEFINED::NICK_TYPE_YAHOO 		=> 'nick_type_yahoo',
				USER_DEFINED::NICK_TYPE_SKYPE 		=> 'nick_type_skype',
				USER_DEFINED::NICK_TYPE_LIVE 		=> 'nick_type_live'
		);
		return $arr;
	}
}